From 4f90728a4a8c98f3ee7e9aab5a05f93c152a375d Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Feb 2020 20:31:33 +0100 Subject: Fix tests for 3.1.1 --- tests/cassettes/test_media_post[False].yaml | 50 ++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'tests/cassettes/test_media_post[False].yaml') diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml index 6eabb79..accb210 100644 --- a/tests/cassettes/test_media_post[False].yaml +++ b/tests/cassettes/test_media_post[False].yaml @@ -1,13 +1,13 @@ interactions: - request: body: !!binary | - LS0zMmQzODhjMTIyYmE0MTdhYjkyNTRlZGI5NzhmODc0Zg0KQ29udGVudC1EaXNwb3NpdGlvbjog + LS0yOTU2NmMzZjBjY2E0NTdjYWJlMDkzMjFjZjY3ZTRmNg0KQ29udGVudC1EaXNwb3NpdGlvbjog Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u - eSB3YWxrDQotLTMyZDM4OGMxMjJiYTQxN2FiOTI1NGVkYjk3OGY4NzRmDQpDb250ZW50LURpc3Bv - c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS0zMmQzODhjMTIy - YmE0MTdhYjkyNTRlZGI5NzhmODc0Zg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu - YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTU3MDkxNDA1Mi4wNDQ5Mjc2 - X0k3RFozMkhTOEguanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA + eSB3YWxrDQotLTI5NTY2YzNmMGNjYTQ1N2NhYmUwOTMyMWNmNjdlNGY2DQpDb250ZW50LURpc3Bv + c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS0yOTU2NmMzZjBj + Y2E0NTdjYWJlMDkzMjFjZjY3ZTRmNg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu + YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTU4MjM5OTcyNy4wOTMwNzYy + XzRLVzhWTVJEQkMuanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA AQEBAEgASAAA/+ICHElDQ19QUk9GSUxFAAEBAAACDGxjbXMCEAAAbW50clJHQiBYWVogB9wAAQAZ AAMAKQA5YWNzcEFQUEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAABe @@ -943,19 +943,19 @@ interactions: qYg3CP1hg5XagwuSZZej1N96VKgeHKRZSii9BM7fep2iK8u6Y69PxSpUVZtsdoSiQO3N/mozLhcI xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp - UqD/2Q0KLS0zMmQzODhjMTIyYmE0MTdhYjkyNTRlZGI5NzhmODc0Zi0tDQo= + UqD/2Q0KLS0yOTU2NmMzZjBjY2E0NTdjYWJlMDkzMjFjZjY3ZTRmNi0tDQo= headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['53738'] - Content-Type: [multipart/form-data; boundary=32d388c122ba417ab9254edb978f874f] + Content-Type: [multipart/form-data; boundary=29566c3f0cca457cabe09321cf67e4f6] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/media response: - body: {string: '{"id":"37","type":"image","url":"http://localhost/system/media_attachments/files/000/000/037/original/16ec5d2b4dad975d.jpeg?1570914052","preview_url":"http://localhost/system/media_attachments/files/000/000/037/small/16ec5d2b4dad975d.jpeg?1570914052","remote_url":null,"text_url":"http://localhost/media/5e9Sjvt8tWMNnQsBbdI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abf96798c1e8f2aa.jpeg?1582399727","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abf96798c1e8f2aa.jpeg?1582399727","remote_url":null,"text_url":"http://localhost/media/zwW0A1wYGnqGywHjPho","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} headers: Cache-Control: ['no-cache, no-store'] @@ -967,27 +967,27 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [f7528fe3-4434-4bc9-ad1c-144f0163cbdd] - X-Runtime: ['0.308578'] + X-Request-Id: [faa2c7cc-37cd-4499-8ace-5dca787d7384] + X-Runtime: ['0.448488'] X-XSS-Protection: [1; mode=block] - content-length: ['591'] + content-length: ['590'] status: {code: 200, message: OK} - request: - body: status=LOL+check+this+out&media_ids%5B%5D=37 + body: status=LOL+check+this+out&media_ids%5B%5D=1 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - Content-Length: ['44'] + Content-Length: ['43'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"102951423337500114","created_at":"2019-10-12T21:00:52.406Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102951423337500114","url":"http://localhost/@mastodonpy_test/102951423337500114","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eLOL + body: {string: '{"id":"103704148548559582","created_at":"2020-02-22T19:28:47.627Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/103704148548559582","url":"http://localhost/@mastodonpy_test/103704148548559582","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eLOL check this out\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2019-10-12T21:00:52.418Z","emojis":[],"fields":[]},"media_attachments":[{"id":"37","type":"image","url":"http://localhost/system/media_attachments/files/000/000/037/original/16ec5d2b4dad975d.jpeg?1570914052","preview_url":"http://localhost/system/media_attachments/files/000/000/037/small/16ec5d2b4dad975d.jpeg?1570914052","remote_url":null,"text_url":"http://localhost/media/5e9Sjvt8tWMNnQsBbdI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abf96798c1e8f2aa.jpeg?1582399727","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abf96798c1e8f2aa.jpeg?1582399727","remote_url":null,"text_url":"http://localhost/media/zwW0A1wYGnqGywHjPho","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['no-cache, no-store'] @@ -999,10 +999,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [d79ecd27-b772-4d60-9851-055eefd1f486] - X-Runtime: ['0.190370'] + X-Request-Id: [e580b65d-3f70-40c9-bb7b-8d129a403062] + X-Runtime: ['0.208214'] X-XSS-Protection: [1; mode=block] - content-length: ['1884'] + content-length: ['1923'] status: {code: 200, message: OK} - request: body: null @@ -1014,10 +1014,10 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/statuses/102951423337500114 + uri: http://localhost:3000/api/v1/statuses/103704148548559582 response: - body: {string: '{"id":"102951423337500114","created_at":"2019-10-12T21:00:52.406Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102951423337500114","url":"http://localhost/@mastodonpy_test/102951423337500114","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"LOL - check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2019-10-12T21:00:52.418Z","emojis":[],"fields":[]},"media_attachments":[{"id":"37","type":"image","url":"http://localhost/system/media_attachments/files/000/000/037/original/16ec5d2b4dad975d.jpeg?1570914052","preview_url":"http://localhost/system/media_attachments/files/000/000/037/small/16ec5d2b4dad975d.jpeg?1570914052","remote_url":null,"text_url":"http://localhost/media/5e9Sjvt8tWMNnQsBbdI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"103704148548559582","created_at":"2020-02-22T19:28:47.627Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/103704148548559582","url":"http://localhost/@mastodonpy_test/103704148548559582","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"LOL + check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abf96798c1e8f2aa.jpeg?1582399727","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abf96798c1e8f2aa.jpeg?1582399727","remote_url":null,"text_url":"http://localhost/media/zwW0A1wYGnqGywHjPho","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['no-cache, no-store'] @@ -1029,9 +1029,9 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [60307db7-be9b-42ae-924f-a48921347676] - X-Runtime: ['0.111105'] + X-Request-Id: [b7732fd5-3285-4855-b600-9933a0bfb45b] + X-Runtime: ['0.188419'] X-XSS-Protection: [1; mode=block] - content-length: ['1854'] + content-length: ['1893'] status: {code: 200, message: OK} version: 1 -- cgit v1.2.3